package com.xz.demo.factory;

import com.xz.demo.model.AbstractProductA;
import com.xz.demo.model.AbstractProductB;
import com.xz.demo.model.ConcreteProductA;
import com.xz.demo.model.ConcreteProductB;

/**
 * @author 张志航     
 * @version V1.0.0
 * @projectName design_mode
 * @title     ConcreteFactory1   
 * @package    com.xz.demo.factory  
 * @date   2019/11/27 10:53  
 * @explain
 */
public class ConcreteFactory1 implements AbstractFactory {
    @Override
    public AbstractProductA createAbstractProductA() {
        return new ConcreteProductA();
    }

    @Override
    public AbstractProductB createAbstractProductB() {
        return new ConcreteProductB();
    }
}
